package util.xmlmanager.essential;

public interface Operator {
	final String SPACE = "[ ]*";
	final String AND = "(AND)";
	final String OR = "(OR)";
	final String LOGIC_OPERATOR = AND+"|"+OR;
	final String OR_SPLITTER = SPACE+OR+SPACE;//"[ ]*(OR)[ ]*";
	final String AND_SPLITTER = SPACE+AND+SPACE;//"[ ]*(AND)[ ]*";
	final String[] SYMBOL = {/* equals */"(=)",
							/* not equals */"(!=)",
							/* greater than */"(>)",
							/* greater or equal than */"(>=)",
							/* less or equal than */"(<=)",
							/* less than */"(<)" };
	final byte EQUALS_SPLITTER = 0;
	final byte NOT_EQUALS_SPLITTER = 1;
	final byte GREATER_THAN = 2;
	final byte GREATER_OR_EQUAL_THAN = 3;
	final byte LESS_OR_EQUAL_THAN = 4;
	final byte LESS_THAN = 5;
	final String LETTER = "a-zA-Z";
	final String NUMBER = "0-9";
	final String NAME = "(["+LETTER+"]+["+NUMBER+"]*([.]["+LETTER+"]+["+NUMBER+"]*)?)";
	final String VALUE = "["+LETTER+"_"+NUMBER+"]+";
	final String TRUE = "#T#";
	final String FALSE = "#F#";
}
